﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.FoundationContext;
using SlamDunk.MES.IAppService.DTOs.Outputs.ResourceContext;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.DefinitionContext
{
    /// <summary>
    /// 工艺段设备规范数据传输对象
    /// </summary>
    [DataContract]
    public class SegmentEquipmentRuleInfo : BaseDTO
    {
        #region 设备类Id —— Guid? EquipmentClassId
        /// <summary>
        /// 设备类Id
        /// </summary>
        [DataMember]
        public Guid? EquipmentClassId { get; set; }
        #endregion

        #region 设备Id —— Guid? EquipmentId
        /// <summary>
        /// 设备Id
        /// </summary>
        [DataMember]
        public Guid? EquipmentId { get; set; }
        #endregion

        #region 设备用途 —— string EquipmentUse
        /// <summary>
        /// 设备用途
        /// </summary>
        [DataMember]
        public string EquipmentUse { get; set; }
        #endregion

        #region 数量 —— decimal? Quantity
        /// <summary>
        /// 数量
        /// </summary>
        [DataMember]
        public decimal? Quantity { get; set; }
        #endregion

        #region 工厂模型Id —— Guid? FacilityId 
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DataMember]
        public Guid? FacilityId { get; set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 设备类 —— EquipmentClassInfo EquipmentClassInfo
        /// <summary>
        /// 导航属性 - 设备类
        /// </summary>
        [DataMember]
        public EquipmentClassInfo EquipmentClassInfo { get; set; }
        #endregion

        #region 导航属性 - 设备 —— EquipmentInfo EquipmentInfo
        /// <summary>
        /// 导航属性 - 设备
        /// </summary>
        [DataMember]
        public EquipmentInfo EquipmentInfo { get; set; }
        #endregion

        #region 导航属性 - 工厂模型 —— FacilityInfo FacilityInfo
        /// <summary>
        /// 导航属性 - 工厂模型
        /// </summary>
        [DataMember]
        public FacilityInfo FacilityInfo { get; set; }
        #endregion
    }
}
